home *** CD-ROM | disk | FTP | other *** search
- Path: news.th-darmstadt.de!news
- From: Enno Sandner <enno@intellektik.informatik.th-darmstadt.de>
- Newsgroups: comp.lang.c++
- Subject: Re: Question about destructor...
- Date: Thu, 04 Jan 1996 09:42:06 +0100
- Organization: Fachbereich Informatik, TH Darmstadt
- Message-ID: <30EB92DE.41C67EA6@intellektik.informatik.th-darmstadt.de>
- References: <4ce9mk$atg@eng_ser1.erg.cuhk.hk>
- NNTP-Posting-Host: kitz.intellektik.informatik.th-darmstadt.de
- Mime-Version: 1.0
- Content-Type: text/plain; charset=us-ascii
- Content-Transfer-Encoding: 7bit
- X-Mailer: Mozilla 2.0b3 (X11; I; SunOS 4.1.3 sun4m)
-
- Marty McFly wrote:
- >
- > I now have 2 classes A and B. B is a derived class of A. However,
- > the internal implementation of A is not known, i.e., the private members of
- > class A are not provided, only the public members are given. But class B is
- > implemented by myself. So what should be written in the destructor of B so
- > that all the private members inherited from A are also "deleted"?
- >
-
- You don't need to write any extra code. When a B-instance gets
- destructed the B and the A destructor are both called.
-
- Enno
-